package ed.hbut.supermarket1.entity;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.springframework.stereotype.Controller;

@Setter
@Getter
@Controller
@AllArgsConstructor
@NoArgsConstructor
public class User {
    // Getters and Setters
    private Integer userId;
    private String userName;
    private String userPassword;
    private String userPermissions;

    @Override
    public String toString() {
        return "User{" +
                "userId=" + userId +
                ", userName='" + userName + '\'' +
                ", userPassword='" + userPassword + '\'' +
                ", userPermissions='" + userPermissions + '\'' +
                '}';
    }
}